from rest_framework import serializers
from .models import Radiologist, Schedule, Leave, UnforeseenCircumstance, Study, Workload

class RadiologistSerializer(serializers.ModelSerializer):
    class Meta:
        model = Radiologist
        fields = '__all__'

class ScheduleSerializer(serializers.ModelSerializer):
    class Meta:
        model = Schedule
        fields = '__all__'

class LeaveSerializer(serializers.ModelSerializer):
    class Meta:
        model = Leave
        fields = '__all__'

class UnforeseenCircumstanceSerializer(serializers.ModelSerializer):
    class Meta:
        model = UnforeseenCircumstance
        fields = '__all__'

class StudySerializer(serializers.ModelSerializer):
    class Meta:
        model = Study
        fields = '__all__'

class WorkloadSerializer(serializers.ModelSerializer):
    class Meta:
        model = Workload
        fields = '__all__'